package com.vogue.flowmeter.api.event;


import java.io.Serializable;

/**
 *
 * 定义事件====操作记录事件
 *
 * 所有能被实例化为 Object 的实例都可以作为事件
 * eventbus 3中如果用到了索引加速，事件类的修饰符必须为 public
 */
public class RecordMessageEvent implements Serializable {
    private String control;
    private String message;

    public RecordMessageEvent(String message) {
        this.message = message;
    }
    public RecordMessageEvent(String control, String message) {
        this.control = control;
        this.message = message;
    }

    public String getControl() {
        return control;
    }

    public void setControl(String control) {
        this.control = control;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
